﻿<Window x:Class="WpfApplication1.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="725">
    <Grid>
		<Grid.RowDefinitions>
			<RowDefinition Height="30"/>
			<RowDefinition/>
			<RowDefinition Height="30"/>
		</Grid.RowDefinitions>
		
		<StackPanel Orientation="Horizontal">
			<TextBlock Text="Enter your name here: "/>
			<TextBox x:Name="txtUserId" Width="150"/>
			<Button x:Name="btnJoin" Click="btnJoin_Click" Content="Join" Width="60"/>
		</StackPanel>
		
		<StackPanel Grid.Row="1">
			<Button x:Name="btnDisconnect" Click="btnDisconnect_Click" Content="Disconnect" HorizontalAlignment="Right"
					Width="70"/>
			<ListBox x:Name="lstMessages" Height="230"/>
		</StackPanel>
		
		<StackPanel Orientation="Horizontal" Grid.Row="2">
			<TextBlock Text="Message:"/>
			<TextBox x:Name="txtMessageBody" Width="250"/>
			<Button x:Name="btnSendMessage" Content="Send" Width="50" Click="btnSendMessage_Click"/>
		</StackPanel>
		
	</Grid>
</Window>
